import 'package:event_bus/event_bus.dart';
import 'package:lcapp/data/media_asset_data_entity.dart';
import 'package:lcapp/model/pay/in_app_pay.dart';

EventBus eventBus = new EventBus();

//首页tab切换事件
class HomeChangeIndex {
  bool canPlay; // 0可以播放
  HomeChangeIndex({required this.canPlay});
}

class HomeSliderChangeIndex {
  bool? isOpen; // 0可以播放
  HomeSliderChangeIndex({this.isOpen});
}

class HomeToIndex {
  int? index;
  HomeToIndex({this.index});
}

//分享
class ShareResultEvent {
  int code;
  int shareId;
  ShareResultEvent(this.code,this.shareId);
}

//支付
class PayState {
  int state; //支付状态 0成功
  PayType payType;
  PayState(
      this.state,
      this.payType,
      );
}

//oss上传
class OssUploadState {
  int state;
  int? type;
  List<MediaAssetDataEntity> assets;
  int? uploadId;
  OssUploadState(this.state, this.assets, {this.uploadId,this.type});
}

class FabuState {
  int type; //0视频
  FabuState(this.type,);
}

class LocationState {
  LocationState();
}

class LoginState {
  LoginState();
}

class MessageUnReadState {
  MessageUnReadState();
}